projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405f2f3
)
GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
author
Carlos Garnacho
<carlosg@gnome.org>
Mon, 8 Nov 2010 11:39:28 +0000
(12:39 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:46 +0000
(15:38 +0100)
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index ed2e68d827fdc188bb34adda3309dbb8b3002aeb..cadd28e6848777a272ad17139e4b852357d15d0b 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-3298,7
+3298,7
@@
gtk_render_icon_pixbuf (GtkStyleContext *context,
GtkThemingEngineClass *engine_class;
g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
- g_return_val_if_fail (size
>= -1
, NULL);
+ g_return_val_if_fail (size
== -1 || size <= GTK_ICON_SIZE_DIALOG
, NULL);
g_return_val_if_fail (source != NULL, NULL);
priv = context->priv;